﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Help_Us.Objects;

namespace HelpUs_S2B.Interface
{
    public partial class inicioOrg : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginOrg loginOrga = new LoginOrg();
            if (Session["idOrg"] != null && Session["UserName"] != null && Session["emailOrg"] != null && Session["emailOrg"] != null && Session["NivelAcesso"] != null)
            {
                loginOrga.IdOrg = Convert.ToInt32(Session["idOrg"].ToString());
                loginOrga.NomeUsuRe = Session["UserName"].ToString();
                loginOrga.EmailUsuRes = Session["emailOrg"].ToString();
                Int32 nivelAcesso = Convert.ToInt32(Session["NivelAcesso"].ToString());
            }
            else
            {
                Response.Redirect("loginOrg.aspx");
            }

        }
    }
}